package com.woniuxy.usermodel.form;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class UserPhoneLoginForm {
    @NotBlank
    @Pattern(regexp = "^1[3-9]\\d{9}$",message = "手机号格式有误")
    private String userPhone;
    @NotBlank(message = "验证码不为空")
    private String code;
}
